package com.ruoyi.core.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.core.mapper.LotteryRecordsMapper;
import com.ruoyi.core.domain.LotteryRecords;
import com.ruoyi.core.service.ILotteryRecordsService;

/**
 * 用户积分抽奖记录Service业务层处理
 * 
 * @author Sxz
 * @date 2025-08-07
 */
@Service
public class LotteryRecordsServiceImpl implements ILotteryRecordsService 
{
    @Autowired
    private LotteryRecordsMapper lotteryRecordsMapper;

    /**
     * 查询用户积分抽奖记录
     * 
     * @param id 用户积分抽奖记录主键
     * @return 用户积分抽奖记录
     */
    @Override
    public LotteryRecords selectLotteryRecordsById(Long id)
    {
        return lotteryRecordsMapper.selectLotteryRecordsById(id);
    }

    /**
     * 查询用户积分抽奖记录列表
     * 
     * @param lotteryRecords 用户积分抽奖记录
     * @return 用户积分抽奖记录
     */
    @Override
    public List<LotteryRecords> selectLotteryRecordsList(LotteryRecords lotteryRecords)
    {
        return lotteryRecordsMapper.selectLotteryRecordsList(lotteryRecords);
    }

    /**
     * 新增用户积分抽奖记录
     * 
     * @param lotteryRecords 用户积分抽奖记录
     * @return 结果
     */
    @Override
    public int insertLotteryRecords(LotteryRecords lotteryRecords)
    {
        return lotteryRecordsMapper.insertLotteryRecords(lotteryRecords);
    }

    /**
     * 修改用户积分抽奖记录
     * 
     * @param lotteryRecords 用户积分抽奖记录
     * @return 结果
     */
    @Override
    public int updateLotteryRecords(LotteryRecords lotteryRecords)
    {
        return lotteryRecordsMapper.updateLotteryRecords(lotteryRecords);
    }

    /**
     * 批量删除用户积分抽奖记录
     * 
     * @param ids 需要删除的用户积分抽奖记录主键
     * @return 结果
     */
    @Override
    public int deleteLotteryRecordsByIds(Long[] ids)
    {
        return lotteryRecordsMapper.deleteLotteryRecordsByIds(ids);
    }

    /**
     * 删除用户积分抽奖记录信息
     * 
     * @param id 用户积分抽奖记录主键
     * @return 结果
     */
    @Override
    public int deleteLotteryRecordsById(Long id)
    {
        return lotteryRecordsMapper.deleteLotteryRecordsById(id);
    }
}
